package com.honeywen.mymvc.test;

import java.io.Serializable;

/**
 * @author weiw@opera.com
 * @date 2018/9/30 下午3:20
 */
public class ThreadPoolTask implements Runnable, Serializable {

    private Object attachData;

    public ThreadPoolTask(Object attachData) {
        this.attachData = attachData;
    }

    @Override
    public void run() {

        System.out.println("开始执行任务:" + attachData + "任务, 线程名称：" + Thread.currentThread().getName());
        System.out.println();

        attachData = null;
    }
}
